import request from '@/router/axios'

export function lightLingFetchList(query){
  return request({
    url: '/pvm/chkLight/page',
    method: 'get',
    params: query
  })
}

export function lightLingDelObj(id) {
  return request({
    url: '/pvm/chkLight/' + id,
    method: 'delete'
  })
}

export function lightLingAddObj(obj) {
  return request({
    url: '/pvm/chkLight',
    method: 'post',
    data: obj
  })
}

export function lightLingGetObj(id) {
  return request({
    url: '/pvm/chkLight/' + id,
    method: 'get'
  })
}

export function lightLingPutObj(obj) {
  return request({
    url: '/pvm/chkLight',
    method: 'put',
    data: obj
  })
}

export function lightLingBatchAdd(obj){
  return request({
    url: '/pvm/chkLight/saveBatch',
    method: 'post',
    data: obj
  })
}
